package ex
{
	import flash.events.FocusEvent;
	import mx.controls.TextArea;

	public class TextAreaEx extends TextArea
	{
		public function TextAreaEx()
		{
			super();
			addEventListener(FocusEvent.FOCUS_IN, focusIn);
			addEventListener(FocusEvent.FOCUS_OUT, focusOut);
		}

		public function focusIn(event:FocusEvent):void
		{
			textField.alwaysShowSelection = true;
		}

		public function focusOut(event:FocusEvent):void
		{
			textField.alwaysShowSelection = false;
		}
	}
}